//子弹类
public class Bullet extends FlyingObject{
    int speed;

    Bullet(int x,int y){
        health = 1;
        this.x = x;
        this.y = y;

        image=ImageFiler.bullet;
        imageWidth = image.getWidth();
        imageHeight = image.getHeight();

        speed=6;
    }

    public Bullet() {

    }

    @Override
    void move() {
        y -=speed;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }
}
